<?php
/**
 * Created by PhpStorm.
 * User: yu
 * Date: 2017/1/11
 * Time: 下午1:39
 */

namespace Home\Controller;


use Common\Controller\HomeController;
use Org\Util\Cart;

class CartController extends HomeController
{
	public function addCart(){
		$data = I('post.post');
		(new Cart())->add($data);
		echo 1;die;
	}

	public function lists(){
		$cartData = $_SESSION['cart'];
		$this->assign('cartData',$cartData);
		$this->display();
	}

}